package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_post_reply;

import cn.com.api.mapper.ApiU_post_replyMapper;

import cn.com.api.service.ApiU_post_replyService;

/**
 * 
 **/
@Service
public class U_post_replyServiceImplBase {
	@Autowired
	private ApiU_post_replyMapper apiU_post_replyMapper;
    
    // 根据id获取
	public ApiU_post_reply findU_post_replyById(Integer id){
		ApiU_post_reply u_post_reply = apiU_post_replyMapper.findU_post_replyById( id );
		return u_post_reply;
	}
    
    //查看数据集
	public List<ApiU_post_reply> findU_post_replys(){
        List<ApiU_post_reply> u_post_replys = apiU_post_replyMapper.findU_post_replys();
		return u_post_replys;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_post_replysByMap(HashMap condition){
        List<Map<String, Object>> u_post_replys = apiU_post_replyMapper.findU_post_replysByMap(condition);
		return u_post_replys;
    }
    
	// 添加
	public int insertU_post_reply(ApiU_post_reply u_post_reply){
		int ret_I= apiU_post_replyMapper.insertU_post_reply(u_post_reply);
		return ret_I;
	}

	// 修改
	public int updateU_post_reply(ApiU_post_reply u_post_reply){
		int ret_I= apiU_post_replyMapper.updateU_post_reply(u_post_reply);
		return ret_I;
	}
	
    // 删除
	public int deleteU_post_reply(Integer id){
		int ret_I= apiU_post_replyMapper.deleteU_post_reply( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


